<?php echo $this->fetch('header.html'); ?>
<div id="rightTop">
  <ul class="subnav">
    <?php $_from = $this->_var['_dh_banner']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'subitem');if (count($_from)):
    foreach ($_from AS $this->_var['subitem']):
?>
        <?php if ($this->_var['subitem']['name'] == $this->_var['_curitem']): ?>
            <li><a href="<?php echo $this->_var['subitem']['url']; ?>" class="btn0"><?php echo $this->_var['subitem']['text']; ?></a>
        <?php else: ?>
            <li><a href="<?php echo $this->_var['subitem']['url']; ?>" class="btn1"><?php echo $this->_var['subitem']['text']; ?></a>
        <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  
  </ul>
</div>
<style>

FIELDSET {margin-left:35px;WIDTH: 510px; COLOR: #7c9ccd;}
legend {color:#06C}
.certificate_table table{width:100%;}
.certificate_table th{width:80px;color:#333; vertical-align:top; text-align:right; padding-right:5px; font-size:13px;line-height:25px;}
.certificate_table td{vertical-align:top;color:#333; line-height:25px;}
.certificate_table i{font-size:14px; font-style:normal; color:#F00; font-weight:normal; font-family:宋体; padding-right:5px;}
.certificate_table .verify-tips-info {BORDER-RIGHT: #ffcc35 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #ffcc35 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 12px; BORDER-LEFT: #ffcc35 1px solid; COLOR: #ff0000; LINE-HEIGHT: 12px; PADDING-TOP: 12px; BORDER-BOTTOM: #ffcc35 1px solid; BACKGROUND-COLOR: #fff4c2; margin-bottom:8px}
.certificate_table strong{FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ff0000;}
</style>
<script type="text/javascript">
$(function(){
    $('#user_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice_1').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('right').text('OK!');
        },
        onkeyup    : false,
        rules : {
            amount : {
                number     : true,
                required   : true,
                min        : 0.01,
				max        : 100000
            },	
            leixing: {
                required : true
            }
        },
        messages : {
			amount  : {
				number     : '只能输入数字或金额类型',
                required   : '请正确输入结款金额',
				min        : '最低充值0.01元，请输入大于0.01元的金额',
				max        : '充值金额不能超过100000元，请修改金额'
            },		
            leixing : {
                required : '请选择收支类型'
            }
		
        }
    });
    $('#s_disabled').click(function(){
        $('#lexing_info').show();
		$('#lexing_info1').show();
		$('#log_text').text('账户现金充值');
    });	
    $('#s_enabled').click(function(){
        $('#lexing_info').hide();
		$('#lexing_info1').hide();
		$('#log_text').text('账户现金扣除');
    });	
});
</script>
<div class="info">
<br />
<form method="post" enctype="multipart/form-data" id="user_form">
<a id="mod_zf_pass"></a>
<fieldset>
   	<legend>会员充值：收入、支出</legend>
<br />                  
   <table class="certificate_table">
      <tr>
          <th><i>*</i>会员账号: </th>
          <td><strong><?php echo htmlspecialchars($this->_var['my_money']['user_name']); ?></strong></td>
      </tr>
      <tr>
        <th>当前余额:</th>
        <td><strong><?php echo $this->_var['my_money']['money']; ?></strong> </td>
      </tr>
      <tr>
          <th><i>*</i>充值金额:</th>
          <td><INPUT name=amount id=amount> 
            <font color="#999999">必须输入金额，只能精确到0.01</font></td>
      </tr>
      <tr>
          <th>充值类型:</th>
          <td><label><input name="s_and_z" type="radio" id="s_disabled" value="1" checked="checked"/>充值进帐户（收入）</label>
          <label><input name="s_and_z" type="radio" id="s_enabled" value="2"/>从帐户中扣除（支出）</label></td>
      </tr>
      <tr id="lexing_info">
        <th><i>*</i>支付渠道:</th>
        <td><INPUT name=bank_name id=bank_name> <font color="#999999">如：中国银行、工商银行、支付宝</font></td>
      </tr>
      <tr id="lexing_info1">
        <th><i>*</i>支付帐号:</th>
        <td><INPUT name=bank_account id=bank_account> <font color="#999999">如：江款的银行帐号、支付宝帐号</font></td>
      </tr>      
      <tr>
        <th><i>*</i>收支类型:</th>
        <td><select name="leixing">
      <option value="" >请选择收支类型</option>
      <option value="10">—订单收入</option>
      <option value="20">—订单支出</option>
      <option value="30">—网上充值</option>
      <option value="40">—银行充值</option>
      <option value="50">—帐户转入</option>
      <option value="51">—帐户支出</option>
    </select></td>
      </tr>
      <tr>
        <th>充值备注:</th>
        <td><textarea name="log_text" cols="3" id="log_text" style="width:300px">账户现金充值</textarea></td>
      </tr>  
  
      <tr>
        <th>&nbsp;</th>
        <td><input type="submit" value="确认充值" class="big_btn_1"/></td>
      </tr>                
  </table>
</fieldset>
</form>
<br />
</div>
<?php echo $this->fetch('footer.html'); ?>